package com.quwan.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author quan
 * @date 2021-12-09 11:41
 */
@Getter
@AllArgsConstructor
public enum TransEnum {
    //提现方式 1提现到wx 2-zfb
   // WX_TRANS("1", "payment", "wxTrans", "微信转账"),
    ALI_TRANS("2", "payment", "aliTrans", "支付宝转账");
    String type;
    String component;
    String method;
    String tips;

    public static TransEnum getByType(String type) {
        for (TransEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }
}
